package org.example.gradleadmin.rpc.service;

import gradle.common.core.mode.entity.SystemPermissions;
import jakarta.annotation.Resource;
import org.example.gradleadmin.mapper.SystemPermissionsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemPermissionsRestService {

    @Resource
    private SystemPermissionsMapper permissionsMapper;

    public List<Long> queryIdListPermByUserId(Long id) {

        return permissionsMapper.queryIdListPermByUserId(id);
    }

    public List<SystemPermissions> queryPermAll() {
        return permissionsMapper.queryAll();
    }

}
